package com.Logistics.BaseFeign;

import com.Logistics.entity.Task_transport;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "pd-work", path = "task_transport")
public interface Task_transportFeignClient {
    @PostMapping("/findTask_transportById")
    public Task_transport findTask_transportById(@RequestParam("truck_id") String truck_id);

    /**
     * 智能调度接口调用该接口修改运输任务信息
     * @param task
     * @return Result
     */
    @PostMapping("/updateTask_transport")
    public void updateTask_transport(@RequestBody Task_transport task);
}
